#ifndef __MAIN_H
#define __MAIN_H

/*define CCGR register */
#define CCM_CCGR0 *((volatile unsigned int *)0X020C4068)
#define CCM_CCGR1 *((volatile unsigned int *)0X020C406C)
#define CCM_CCGR2 *((volatile unsigned int *)0X020C4070)
#define CCM_CCGR3 *((volatile unsigned int *)0X020C4074)
#define CCM_CCGR4 *((volatile unsigned int *)0X020C4078)
#define CCM_CCGR5 *((volatile unsigned int *)0X020C407C)
#define CCM_CCGR6 *((volatile unsigned int *)0X020C4080)

/*
 * IOMUX 相关寄存器地址
 */

#define SW_MUX_GPIO5_IO03 *((volatile unsigned int *)0x02290014)
#define SW_PAD_GPIO5_IO03 *((volatile unsigned int *)0x02290058)

/*
 * GPIO1 相关寄存器地址
 */
#define GPIO5_DR        *((volatile unsigned int *)0x020ac000)
#define GPIO5_GDIR      *((volatile unsigned int *)0x020AC004)
#define GPIO5_PSR       *((volatile unsigned int *)0x020AC008)
#define GPIO5_ICR1      *((volatile unsigned int *)0x020AC00C)
#define GPIO5_ICR2      *((volatile unsigned int *)0x020AC000)
#define GPIO5_IMR       *((volatile unsigned int *)0X020AC014)
#define GPIO5_ISR       *((volatile unsigned int *)0X020AC018)
#define GPIO5_EDGE_SEL  *((volatile unsigned int *)0X0209C01C)

#endif // !__MAIN_H
